package com.laf.manage.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "领取记录")
public class ReceiveDTO {

    @ApiModelProperty(value = "物品id" , required = true)
    @NotNull(message = "物品id不能为空" )
    private Long itemId;

    @ApiModelProperty(value = "领取用户的id" , required = false)
    private Long userId;

    @ApiModelProperty(value = "凭证类型 ( 1 身份证 2 人脸图片)" , required = true)
    @NotBlank(message = "凭证类型不能为空")
    private String proofType;

    @ApiModelProperty(value = "领取人名字 (从认证信息中获取，或者用户提供)" , required = false)
    private String realName;

    @ApiModelProperty(value = "凭证图片" , required = false)
    private String proofUrl;


}
